package test.stub.appli;


import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedHashMap;

import test.stub.ul1.TraitFormatStub;
import test.stub.ul2.OracleStub;
import test.stub.ul3.EvaluationStub;

public class IntegrationStub {
	
	public static void autoTest(BufferedReader ftfs, BufferedReader fjr) throws IOException {
		String fichierJdtRun = "jdt_run.txt";
		BufferedReader fileTraitFormat = TraitFormatStub.traitFormatStub(ftfs);
		/*
		 * Comparaison entre le r�sultat atttendu (fjr) 
		 * et le resultat observ� (fileTraitFormat)
		 */
		EvaluationStub.evaluation(fileTraitFormat, fjr); 
		fjr = new BufferedReader(new FileReader(new File(fichierJdtRun)));
		BufferedReader fileOracle = OracleStub.oracleStub(fjr); 
		/*
		 * Comparaison entre le r�sultat attendu (ftfs)
		 * et le r�sultat observ� (fileOracle)
		 */
		EvaluationStub.evaluation(ftfs, fileOracle);

	}

}
